public class Count{
   public static void main(String[] args){
   int sum=0;
   for(int count=0;count<=360;count ++){
   sum+=count;
   }
   System.out.println(sum);
   }
}